package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.service.ISceneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// 门票的控制器
@RestController
@RequestMapping("/scenes")
public class SceneController {

    @Autowired
    private ISceneService sceneService;


    /*
    查询所有的景点信息
    资源:/scenes
    动作:GET
    参数type=x
     */
    @GetMapping
    public Object listScenes() {
        return sceneService.listScenes();
    }

}
